<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
</head>
<body>
    <form action="upload" method="post" enctype="multipart/form-data">
    <!--   拖拽上传     -->

        头像：<input type="file" name="f">
        <input type="text" name="username">
        <button type="submit">提交</button>
    </form>

</body>
</html>